package com.CST.mapper.cst;

import com.CST.entity.BdSysUserDeptCode;
import com.CST.vo.BdSysUserDeptCodeVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface BdSysUserDeptCodeMapper extends BaseMapper<BdSysUserDeptCode> {

    @Delete("delete from BD_SysUserDeptCode where USER_ID = #{userId}")
    int deleteBySysUserId(@Param("userId") String userId);

   List<BdSysUserDeptCodeVO> getDeptCodeVoList(@Param("userId") String userId);



}
